package cn.autumnorange.app.user.provider.repository;

import cn.autumnorange.app.common.dto.ResultDto;
import cn.autumnorange.app.common.repository.BaseDateRepository;
import cn.autumnorange.app.user.api.dto.GramtedAuthorityImpl;
import cn.autumnorange.app.user.provider.entity.SysRoleEntity;

import java.util.List;
import java.util.Map;

/**
 * @author wsf
 * @time 2019/6/6 21:20
 */
public interface SysRoleRepository extends BaseDateRepository<SysRoleEntity> {
  List<SysRoleEntity> findRolesByRoleIdList(Map<String, Object> paramMap);

  ResultDto<List<GramtedAuthorityImpl>> getRolesByUserId(long userId);
}
